package com.honour.service.interfaced.impl;

import java.util.List;


import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.honour.service.interfaced.EnergyInManager;
import com.system.dao.DaoSupport;
import com.system.util.PageData;

/** 
 * 说明： 能量值接口
 * 创建人：zhaozhenhua
 * 创建时间：2017-12-13
 * @version
 */
@Service("energyInService")
public class EnergyInService implements EnergyInManager{
	
	@Resource(name = "daoSupport")
	private DaoSupport dao;

	
	/**获取所有能量组成
	 * @param pd
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	public List<PageData> getEnergyList(PageData pd)throws Exception{
		return (List<PageData>) dao.findForList("EnergyInMapper.getEnergyList",pd);
	}


	/**根据能量值ID获取能量分值组成列表
	 * @param pd
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getEnergyCompList(PageData pd) throws Exception {
		return (List<PageData>) dao.findForList("ScoreComponentInMapper.getEnergyCompList",pd);
	}


	/** 获取购物分值
	 * @param 
	 * @throws Exception
	 */
	@Override
	public Integer getShopScore(PageData pd) throws Exception {
		return (Integer)dao.findForObject("ScoreComponentInMapper.getShopScore",pd);
	}


	/** 获取发起分值
	 * @param 
	 * @throws Exception
	 */
	@Override
	public Integer getPublishPartyScore(PageData pd) throws Exception {
		return (Integer)dao.findForObject("ScoreComponentInMapper.getPublishPartyScore",pd);
	}


	/** 获取参与分值
	 * @param 
	 * @throws Exception
	 */
	@Override
	public Integer getTakePartyScore(PageData pd) throws Exception {
		return (Integer)dao.findForObject("ScoreComponentInMapper.getTakePartyScore",pd);
	}


	/** 获取分享分值
	 * @param 
	 * @throws Exception
	 */
	@Override
	public Integer getShareScore(PageData pd) throws Exception {
		return (Integer)dao.findForObject("ScoreComponentInMapper.getShareScore",pd);
	}


	/** 获取签到分值
	 * @param 
	 * @throws Exception
	 */
	@Override
	public Integer getSignScore(PageData pd) throws Exception {
		return (Integer)dao.findForObject("ScoreComponentInMapper.getSignScore",pd);
	}


	/** 获取打赏分值
	 * @param 
	 * @throws Exception
	 */
	@Override
	public Integer getAwardScore(PageData pd) throws Exception {
		return (Integer)dao.findForObject("ScoreComponentInMapper.getAwardScore",pd);
	}


	/** 获取任务分值
	 * @param 
	 * @throws Exception
	 */
	@Override
	public Integer getTaskScore(PageData pd) throws Exception {
		return (Integer)dao.findForObject("ScoreComponentInMapper.getTaskScore",pd);
	}


	/** 获取点赞分值
	 * @param 
	 * @throws Exception
	 */
	@Override
	public Integer getDotAgreeScore(PageData pd) throws Exception {
		return (Integer)dao.findForObject("ScoreComponentInMapper.getDotAgreeScore",pd);
	}


	/** 获取实名认证分值
	 * @param 
	 * @throws Exception
	 */
	@Override
	public Integer getNameScore(PageData pd) throws Exception {
		return (Integer)dao.findForObject("ScoreComponentInMapper.getNameScore",pd);
	}


	/** 获取微信绑定分值
	 * @param 
	 * @throws Exception
	 */
	@Override
	public Integer getWeChatScore(PageData pd) throws Exception {
		return (Integer)dao.findForObject("ScoreComponentInMapper.getWeChatScore",pd);
	}


	/** 获取支付宝绑定分值
	 * @param 
	 * @throws Exception
	 */
	@Override
	public Integer getZhiFuBaoScore(PageData pd) throws Exception {
		return (Integer)dao.findForObject("ScoreComponentInMapper.getZhiFuBaoScore",pd);
	}


	/** 获取QQ绑定分值
	 * @param 
	 * @throws Exception
	 */
	@Override
	public Integer getQQScore(PageData pd) throws Exception {
		return (Integer)dao.findForObject("ScoreComponentInMapper.getQQScore",pd);
	}



	/** 获取微博分值
	 * @param 
	 * @throws Exception
	 */
	@Override
	public Integer getBlogScore(PageData pd) throws Exception {
		return (Integer)dao.findForObject("ScoreComponentInMapper.getBlogScore",pd);
	}


	/** 获取慈善分值
	 * @param 
	 * @throws Exception
	 */
	@Override
	public Integer getCiShanScore(PageData pd) throws Exception {
		return (Integer)dao.findForObject("ScoreComponentInMapper.getCiShanScore",pd);
	}


	/** 获取互帮互助分值
	 * @param 
	 * @throws Exception
	 */
	@Override
	public Integer getHelpScore(PageData pd) throws Exception {
		return (Integer)dao.findForObject("ScoreComponentInMapper.getHelpScore",pd);
	}


	/** 获取参谋智者分值
	 * @param 
	 * @throws Exception
	 */
	@Override
	public Integer getWiseScore(PageData pd) throws Exception {
		return (Integer)dao.findForObject("ScoreComponentInMapper.getWiseScore",pd);
	}


	/** 按月份统计用户能量值
	 * @param 
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getEnergyValueByMonth(PageData pd) throws Exception {
		return (List<PageData>) dao.findForList("StatisticsInMapper.getEnergyValueByMonth",pd);
	};
	
}

